package com.powernode.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.powernode.domain.SysAttachment;
import com.powernode.mapper.SysAttachmentMapper;
import com.powernode.service.SysAttachmentService;

import java.util.List;

/**
*描述：
*作者：动力节点·武汉
*/
@Service
public class SysAttachmentServiceImpl implements SysAttachmentService{

    @Resource
    private SysAttachmentMapper sysAttachmentMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return sysAttachmentMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SysAttachment record) {
        return sysAttachmentMapper.insert(record);
    }

    @Override
    public int insertSelective(SysAttachment record) {
        return sysAttachmentMapper.insertSelective(record);
    }

    @Override
    public SysAttachment selectByPrimaryKey(Integer id) {
        return sysAttachmentMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SysAttachment record) {
        return sysAttachmentMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SysAttachment record) {
        return sysAttachmentMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<SysAttachment> queryAttachmentList(String keywords, Integer userId) {
        return this.sysAttachmentMapper.queryAttachmentList(keywords,userId);
    }

}
